package com.xinshujia.dto;

import com.google.gson.annotations.JsonAdapter;
import com.xinshujia.adapter.LocalDateTimeAdapter;

import java.time.LocalDateTime;

/**
 * *************************************
 * *   @author: 野狼上校               **
 * *   @since: 2024-07-20 12:12       **
 * *   @version: 1.0                  **
 * *************************************
 * <p>
 *     预警视图封装类
 */
public class AlarmRecordDTO {
    private Integer id;
    // 设备Id
    private String deviceGuid;
    // 生产产线
    private String productionLine;
    // 机床名称
    private String machineName;
    // 详情图片地址
    private String photoUrl;
    // 预警处理详情
    private String alarmDesc;
    // 预警处理状态
    private Integer alarmStatus;
    // 预警次数
    private Integer alarmCount;
    // 创建时间
    @JsonAdapter(LocalDateTimeAdapter.class)
    private LocalDateTime createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDeviceGuid() {
        return deviceGuid;
    }

    public void setDeviceGuid(String deviceGuid) {
        this.deviceGuid = deviceGuid;
    }

    public String getProductionLine() {
        return productionLine;
    }

    public void setProductionLine(String productionLine) {
        this.productionLine = productionLine;
    }

    public String getMachineName() {
        return machineName;
    }

    public void setMachineName(String machineName) {
        this.machineName = machineName;
    }

    public String getPhotoUrl() {
        return photoUrl;
    }

    public void setPhotoUrl(String photoUrl) {
        this.photoUrl = photoUrl;
    }

    public String getAlarmDesc() {
        return alarmDesc;
    }

    public void setAlarmDesc(String alarmDesc) {
        this.alarmDesc = alarmDesc;
    }

    public Integer getAlarmStatus() {
        return alarmStatus;
    }

    public void setAlarmStatus(Integer alarmStatus) {
        this.alarmStatus = alarmStatus;
    }

    public Integer getAlarmCount() {
        return alarmCount;
    }

    public void setAlarmCount(Integer alarmCount) {
        this.alarmCount = alarmCount;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
}
